package cn.learn.webclient;

import io.netty.handler.ssl.SslContext;
import io.netty.handler.ssl.SslContextBuilder;
import io.netty.handler.ssl.util.InsecureTrustManagerFactory;
import org.springframework.context.annotation.Bean;

import javax.net.ssl.SSLException;

/**
 * @author huangyezhan
 * @version 1.0
 * @date 2020年08月10日1:54
 */
public class WebClient {

    @Bean
    public WebClient createWebClient() throws SSLException {
        SslContext sslContext = SslContextBuilder
                .forClient()
                .trustManager(InsecureTrustManagerFactory.INSTANCE)
                .build();


        return null;
    }

}
